package sicnu.cs.aps.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import sicnu.cs.aps.domain.entity.StudentInfo;
import sicnu.cs.aps.domain.entity.TeacherInfo;

import java.util.List;

/**
 * @author CaiKe
 * @date 2022/5/29 17:16
 */
@Mapper
public interface TeacherInfoMapper extends BaseMapper<TeacherInfo> {

    /**
     * 通过姓名前缀查询对应的学生信息
     *
     * @param condition 姓名前缀
     * @return 老师信息
     */
    List<TeacherInfo> selectStByPrefixName(@Param("name") String condition);

    /**
     * 通过工号前缀查询对应学生信息
     * @param condition 工号前缀
     * @return 老师信息
     */
    List<TeacherInfo> selectStByPrefixSid(@Param("sid")String  condition);
}